<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>小彭租车欢迎您！！！</title>
<script type="text/jaascript" src="<%=request.getContextPath() %>/frame/jquery-3.6.0.min.js"></script>
                     <link rel="stylesheet" href="<%=request.getContextPath() %>/frame/bootstrap-3.4.1-dist/css/bootstrap.css">
                     <script type="text/javascript" src="<%=request.getContextPath() %>/frame/bootstrap-3.4.1-dist/js/bootstrap.js"></script>
                     <link type="texvt/css" rel="stylesheet" href="css/common.css">
<style type="text/css">
	body{
		background-image: url("images/background.jpg");
		overflow: hidden;
	}
	.login-div{
		background: rgba(217, 237, 247);
		width: 600px;
		box-sizing: border-box;
		margin: 0px auto;
		padding: 20px 40px;
	}
	.login-title{
		text-align: center;
		font-size: 30px;
	}
	.form-item{
		box-sizing: border-box;
		width: 100%;
		height: 35px;
		margin-top: 15px;
		padding: 0px 5px;
	}
</style>
</head>
<body>
	<div style="height: 260px;"></div>
	<div class="login-div">
		<div class="login-title">小彭租车欢迎您！！！</div>
		<br>
		<form action="<%=request.getContextPath() %>/login" method="post">
			<input class="form-item form-control" name="username" type="text" placeholder="用户名" required="required">
			<input class="form-item form-control" name="password" type="password" placeholder="密码" required="required">
			<div style="margin-top: 15px;">
				<input type="radio" name="userType" value="u" id="u" checked="checked"> <label for="u">顾客&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;</label>
				<input type="radio" name="userType" value="a" id="a"> <label for="a">管理员</label>
			</div>
			<span style="color: red">
				<%=request.getAttribute("errorMsg") != null ? request.getAttribute("errorMsg") : "" %>
			</span>
			<button class="form-item btn btn-default" >登录</button>
		</form>
		<br>
		<a href="register.jsp" >&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;注册账号</a>
	</div>
</body>
</html>